package com.wu.client.vo.req.post;

import com.wu.mongo.Post;
import lombok.Data;

import java.util.List;

/**
 * @author Cousin
 * @date 2025/4/6
 * @Description
 */
@Data
public class PostAddReq {
    private Long userId;
    private String content;
    private Integer visibility;
    private Post.Location location;

    private Integer mediaType;
    private MediaData mediaData;
    @Data
    public static class MediaData {
        private List<MediaData> images;
        Long id;
        String base64;
        Long size;
        Boolean isExternal;
        String suffix;
    }


    /**
     * {
     *     "content": "666",
     *     "userId": "1",
     *     "visibility": "public",
     *     "location": {
     *         "city": "深圳市",
     *         "name": "金迪世纪大厦",
     *         "address": "广东省深圳市南山区侨香路4018号"
     *     },
     *     "mediaType": "music",
     *     "mediaData": {
     *         "id": 1,
     *         "title": "Perfect",
     *         "artist": "未知艺术家",
     *         "cover": "/img/cover/1.jpg",
     *         "duration": "3:59",
     *         "url": "https://96.f.1ting.com/local_to_cube_202004121813/96kmp3/www.1ting.com.mp3",
     *         "isExternal": false
     *     }
     * }
     */
}
